<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets">
    <h:head>
        <title>#{bundle.menuSavtrans}</title>
        <link href="./resources/css/default.css" rel="stylesheet" type="text/css" />
    </h:head>
    <h:body>
        <ui:composition>
            
            <h:form prependId="false" >
                
                <p:outputPanel autoUpdate="true" >
                <p:toolbar>
                    <p:toolbarGroup align="left">
                        <p:commandButton value="#{bundle.btnSave}" icon="ui-icon-disk" update="displayMenusavtrans" 
                                         rendered="#{ugpolicyBean.cekButtonAccess(181,'INS;')}"
                                         action="#{menusavtransBean.save()}"/> 
                    </p:toolbarGroup>
                </p:toolbar>
                </p:outputPanel>
                
                
                <h:panelGrid id="displayMenusavtrans" styleClass="addELIT" cellpadding="0" border="0">
                    <p:dataTable id="dtMenusavtrans" var="varmenu" value="#{menusavtransBean.menus}" >
                        <p:column headerText="#{bundle.globalName}" style="width: 200px;">
                            <h:outputText value="#{varmenu.menu.menuName}" />
                        </p:column>

                        <p:column headerText="#{bundle.savtrans}" style="width: 150px;">
                            <p:selectManyCheckbox layout="pageDirection" value="#{varmenu.savtransIds}" >
                                <f:selectItems value="#{menusavtransBean.availableSavtrx}" />
                            </p:selectManyCheckbox>
                        </p:column>
                            
                        <p:column headerText="" style="width: auto;" />
                    </p:dataTable>
                </h:panelGrid>
            </h:form>
        </ui:composition>
    </h:body>
</html>

